﻿using System;
using System.Collections.Generic;
using System.Text;
using Nissen_Dao;
using Nissen_Model;

namespace Nissen_Manage.Forms
{
	public class SubjectCourseManageService
	{
		public void SaveSubjectCourse(IList<SubjectCourse> subjectCourses,Test test)
		{
			SubjectCourseDao subjectCourseDao = new SubjectCourseDao();

			subjectCourseDao.SaveOrUpdateSubjectCourses(subjectCourses, test);
		}

		public IList<SubjectCourse> GetDBSubjectCourse(string tmpTestId)
		{
			SubjectCourseDao subjectCourseDao = new SubjectCourseDao();

			return subjectCourseDao.GetSubjectCourses(tmpTestId);
		}
	}
}
